package com.xinli.xinlifm.http.server;

import com.xinli.xinlifm.http.bean.CategoryBean;
import com.xinli.xinlifm.http.bean.DianTaiBean;
import com.xinli.xinlifm.http.bean.ForumBean;
import com.xinli.xinlifm.http.bean.FroumDetailCommentBean;
import com.xinli.xinlifm.http.bean.HomeBean;
import com.xinli.xinlifm.http.bean.find.FindCircleBean;
import com.xinli.xinlifm.http.bean.find.FindXinChangBean;
import com.xinli.xinlifm.http.bean.find.FindZhuBean;
import com.xinli.xinlifm.http.bean.player.PlayerBean;
import com.xinli.xinlifm.http.bean.player.RecommendBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * 这个类用来加载所有的视图
 * 我把bean全部建立好，然后写在这里
 * <p>
 * Created by zz on 16-10-12.
 */

public interface SuperServer {
    //主页的
    @GET("/fm/home-list.json?key=046b6a2a43dc6ff6e770255f57328f89")
    Call<HomeBean> getHomeBean();

    //http://yiapi.xinli001.com/fm/forum-thread-lis.json?flag=0&offset=30&limit=10&type=1&key=046b6a2a43dc6ff6e770255f57328f89
    @GET("/fm/forum-thread-list.json")
    Call<ForumBean> getForumBean(@Query("flag") int flag, @Query("offset") int offset, @Query("limit") int limit, @Query("type") int type);

    //find轮播
    @GET("/fm2/hot_tag_list.json/?flag=4&offset=0&rows=10")
    Call<FindCircleBean> getFindCircleBean();

    @GET("/fm/forum-comment-list.json?")
    Call<FroumDetailCommentBean> getDetailComment(@Query("post_id") int post_id, @Query("offset") int offset, @Query("limit") int limit);
    //find下面的6主播头像
    @GET("/fm/diantai-find-list.json?offset=0&limit=6&key=046b6a2a43dc6ff6e770255f57328f89")
    Call<FindZhuBean> getFindZhuBean();

    //find 的点击事件
    @GET("/fm2/broadcast_list.json/?offset=0&speaker_id=0&rows=10&key=046b6a2a43dc6ff6e770255f57328f89")
    Call<FindXinChangBean> getFindXinChangBean(@Query("tag") String tag, @Query("offset") int offset);


    //分类
    @GET("fm/category-jiemu-list.json")
    Call<CategoryBean> getCategoryBean(@Query("category_id") int category_id, @Query("offset") int offset, @Query("limit") int limit, @Query("key") String key);

    //更多心理课程
    @GET("fm/newlesson-list.json")
    Call<CategoryBean> getNewLessonBean(@Query("offset") int offset, @Query("limit") int limit, @Query("key") String key);

    //更多FM
    @GET("fm/newfm-list.json")
    Call<CategoryBean> getNewFm(@Query("offset") int offset, @Query("limit") int limit, @Query("key") String key);

    //更多电台
    @GET("fm/diantai-page.json")
    Call<DianTaiBean> getDianTai(@Query("key") String key);

    //音乐播放器的数据
    @GET("fm/broadcast-detail.json")
    Call<PlayerBean> getPlayerBean(@Query("id") int id);

    //评论数据
    @GET("/fm/comment-latest-list.json")
    Call<RecommendBean> getRecommendBean(@Query("offset") int offset, @Query("broadcast_id") int broadcast_id, @Query("limit") int limit);


}
